package com.jprocms.module.cms.controller.admin.task.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.time.OffsetDateTime;

/**
 * 任务 Excel VO
 *
 * @author JPROCMS4444
 */
@Data
public class TaskExcelVO {

    @ExcelProperty("任务ID")
    private Long id;

    @ExcelProperty("站点ID")
    private Long siteId;

    @ExcelProperty("用户ID")
    private Long userId;

    @ExcelProperty("名称")
    private String name;

    @ExcelProperty("开始时间")
    private OffsetDateTime beginTime;

    @ExcelProperty("结束时间")
    private OffsetDateTime endTime;

    @ExcelProperty("已完成数量")
    private Integer currentNum;

    @ExcelProperty("总数量")
    private Integer totalNum;

    @ExcelProperty("类型(1:HTML生成,2:全文索引生成)")
    private Short taskType;

    @ExcelProperty("状态(0:等待,1:运行中,2:出错,3:停止,4:完成)")
    private Short status;

    @ExcelProperty("错误信息")
    private String errorMsg;

}
